package com.estore.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

import com.estore.entity.Product_Image;

public class Product_ImageMapper implements RowMapper<Product_Image> {

	@Override
	public Product_Image mapRow(ResultSet rs, int arg1) throws SQLException {
		Product_Image product_image = new Product_Image();
		product_image.setProductID(rs.getInt("productID"));
		product_image.setLinkImg(rs.getString("linkImg"));
		product_image.setMainImg(rs.getInt("mainImg"));
		product_image.setImgType(rs.getInt("imgType"));
		return product_image;
	}
}
